package com.tocean.app.entity.framework;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tocean.app.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("question")
public class Question extends BaseEntity {

    @ApiModelProperty("题干")
    @NotEmpty
    @TableField(value = "stem")
    private String stem;

    @ApiModelProperty("题目解析")
    @NotEmpty
    @TableField(value = "analysis")
    private String analysis;

    @ApiModelProperty("选项A")
    @NotEmpty
    @TableField(value = "optionA")
    private String optionA;

    @ApiModelProperty("选项B")
    @NotEmpty
    @TableField(value = "optionB")
    private String optionB;

    @ApiModelProperty("选项C")
    @NotEmpty
    @TableField(value = "optionC")
    private String optionC;

    @ApiModelProperty("选项D")
    @NotEmpty
    @TableField(value = "optionD")
    private String optionD;

    @ApiModelProperty("正确选项")
    @NotEmpty
    @TableField(value = "rightOption")
    private String rightOption;

    @ApiModelProperty("显示/隐藏")
    @NotNull
    @TableField(value = "is_show")
    private Boolean isShow;


}
